#pragma once


// HighlightingRulesDialog dialog

class HighlightingRulesDialog : public CDialog
{
	DECLARE_DYNAMIC(HighlightingRulesDialog)

public:
	HighlightingRulesDialog( __int64 NewMaxTime, CString NewTimeType, CWnd* pParent = NULL);   // standard constructor
	virtual ~HighlightingRulesDialog();

// Dialog Data
	enum { IDD = IDD_HIGHLIGHTINGRULESDIALOG };
	CString TimeType;
	__int64 MaxTime;
	__int64 Min;
	__int64 Max;
	int TypeOfRule;

//Functions
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	BOOL OnInitDialog();
	void OnBnClickedDeleteRules();
	void OnMinMaxRadioButton();
	void OnTimePrecisionRadioButton();
	void InitializeMinAndMax( __int64 Value1, __int64 Value2 );
	void NormalizeMinAndMax();

public:
	__int64 GetMin();
	__int64 GetMax();
	int GetTypeOfRule();

	DECLARE_MESSAGE_MAP()
};
